<div id="box-wrapper">
    <div id="top-left"></div>
    <div id="top-right"></div>
    <div id="top-center"></div>
    <div id="main-left"></div>        
    <div id="main-right"></div>        
    <div id="bottom-left"></div>        
    <div id="bottom-right"></div>        
    <div id="bottom-center"></div>
    <div id="box-content">                    
        <div class="header">
            <div class="logo">
                <div class="inner">
                    <h1>Domain Set Up</h1><br /><span>Your Domain or an Indition Sub Domain</span>
                </div>
            </div>
            <h2>Customize your URL</h2>                            
        </div>
        <p>Ximent, occatem volo ipiendis reius resecti aspedi aute earum facepudis im dolum acipsapis velibus. Itatur? Rorument aut quate eaquam nus rero ommodi tem faccus minti odicat.Tem. Ut rectibus sum ad mos am hil magnatur atecuscid utatum qui sequia voluptas asped etum, consed ut repro et explicia consequisi officiures solescia sequae omnit enis ipitae nimi, nulligenia </p>
        <p><strong>*URLS can be changed at anytime after the site is created</strong></p>
        <div class="form">
            <form id="form-back-to-previous" method="post" action="<?php if($siteInfo->layout=='template') $prevRoute = '/FrontDesk/site/addProfile'; else $prevRoute = '/FrontDesk/site/selectModules'; echo $this->createUrl($prevRoute); ?>"></form>
            <?php
            $form=$this->beginWidget('CActiveForm', array(
                'id'=>'form-setup-domain',
                'action'=>(($siteInfo->layout=='template') ? array('/FrontDesk/site/finish') : array('/FrontDesk/site/addProfile')),
                //'enableClientValidation' => true,
                'enableAjaxValidation'=>true,
                'clientOptions' => array(
                    'validateOnSubmit'=>true,
                ),
            ));
            ?>
                <?php echo $siteInfo->showAttributesHiddenFields(array('custom_domain','sub_domain')); ?>
                <div class="row">
                    <span class="description">Use your own domain by entering it below:</span>
                    <div class="textbox">
                        <span>
                            <?php echo $form->textField($siteInfo,'custom_domain',array('class'=>'site-info-field')); ?>
                        </span>
                    </div>
                    <span class="required">*</span>
                    <?php echo $form->error($siteInfo,'custom_domain',array('style'=>'margin-left: 5px;')); ?> 
                </div>
                <div class="row">
                    <span class="description">Choose your indition sub domain</span>
                    <label class="bigger" for="indition-subdomain">http://</label>
                    <div class="textbox">
                        <span>
                        <?php echo $form->textField($siteInfo,'sub_domain',array('class'=>'site-info-field','style'=>'width: 265px;')); ?>
                        </span>
                    </div>
                    <label class="bigger" for="indition-subdomain">.indition.com</label>
                    <?php echo $form->error($siteInfo,'sub_domain',array('style'=>'margin-left: 84px;')); ?>                                
                </div>
                <div class="row buttons">
                    <a href="#" class="question-button"></a>
                    <div class="button">
                        <span>
                            <input type="submit" value="<?php if($siteInfo->layout=='template') echo 'Create Your Site'; else echo 'Next [3 of 3]'; ?>" />
                        </span>
                    </div>
                    <div class="button">
                        <span>
                            <a id="lnk-back-to-previous" href="#">Back</a>
                        </span>
                    </div>                            
                </div>
                <script type="text/javascript">
                $('#lnk-back-to-previous').click(function(){
                    $('#form-setup-domain .site-info-field').each(function(){
                        var ele = $(this).clone();
                        ele.val($(this).val());
                        ele.appendTo($('#form-back-to-previous'));
                    });
                    $('#form-back-to-previous').submit();
                    return false;    
                }); 
                </script>
            <?php $this->endWidget(); ?>
        </div>                
    </div>
</div>